package kr.co.doriclassic.pro08_01;

public class Average {
	private int a;
	private int b;
	private int c;
	public Average() {
		a=0;
		b=0;
		c=0;
	}
	public void setAverage(int a, int b){
		this.a=a;
		this.b=b;
		getAverage(a, b);
	}
	public void setAverage(int a, int b, int c){
		this.a=a;
		this.b=b;
		this.c=c;
		getAverage(a, b, c);		
	}
	public void getAverage(int a, int b){
		System.out.println("평균="+((a+b)/2)); 				
	}
	
	public void getAverage(int a, int b, int c){
		System.out.println("평균="+((a+b+c)/3)); 				
	}
}
